package com.syq.service;

import com.syq.bean.Grade;
import com.syq.bean.Role;

import java.util.List;

public interface RoleService {
    /**
     * 查询角色列表
     * @return
     */
    public List<Role> getList();

    /**
     * 分页查询
     * @param PageIndex
     * @param pageSize
     * @return
     */
    public List<Role> getRoleList(int PageIndex,int pageSize);
    public int total();
    public int addRole(String roleName,String state,String[] ids);
    public Role findById(int roleId);
    public int updateRole(Role role,String[] menuIds);
    public int deleteRole(int roleId);
    public int startRole(int roleId);
}
